#ifndef COMMON_H
#define COMMON_H

#include <QCoreApplication>
#include <QMap>
#include "IMonitor.h"

class QDir;

namespace Platform {
    // QString getActiveWindow();
    unsigned long getActiveWindowPID();
    QString getActiveWindowName();
    QString getActiveApplicationName();

    QString getProcessPathByPID(unsigned long pid);

    IMonitor& monitor();

    const QMap<QString, int> getKeyMap();

    Qt::Key toQtKey(unsigned char nativeCode);

    extern QDir dataDir;

}


#endif
